<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:f="http://java.sun.com/jsf/core">

    <!-- INTERFACE -->
    <cc:interface>
        <cc:attribute name="controle"/>
        <cc:attribute name="navegacao"/>
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>
        <p:dataTable id="tabela"
                     value="#{cc.attrs.controle.listar}"
                     var="objeto"
                     paginator="true"
                     rows="5">
            <cc:insertChildren/>
            <p:column>
                <h:link outcome="#{cc.attrs.navegacao}">
                    <f:param name="id" value="#{objeto.id}"/>
                    <h:graphicImage title="clique para editar" 
                                    style="border: 0px;"
                                    value="#{resource['img:editar.png']}"/>
                </h:link>
            </p:column>            
        </p:dataTable>
    </cc:implementation>

</html>